package github.kawaiior.yuanchuxiuzhen.core.init;

import github.kawaiior.yuanchuxiuzhen.Yuanchuxiuzhen;
import github.kawaiior.yuanchuxiuzhen.common.potion.CommonEffect;
import github.kawaiior.yuanchuxiuzhen.common.potion.ExampleEffect;
import net.minecraft.potion.Effect;
import net.minecraft.potion.EffectType;
import net.minecraftforge.fml.RegistryObject;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.ForgeRegistries;

public class EffectInit {
    public static final DeferredRegister<Effect> POTIONS = DeferredRegister.create(ForgeRegistries.POTIONS, Yuanchuxiuzhen.MODID);

//    public static final RegistryObject<Effect> EXAMPLE_EFFECT = POTIONS.register("example_potion", ExampleEffect::new);
    public static final RegistryObject<Effect> LIGHTNING_RESISTANCE_EFFECT = POTIONS
        .register("lightning_resistance_effect", ()->new CommonEffect(EffectType.BENEFICIAL, 2293580));
    public static final RegistryObject<Effect> FALL_IMMUNITY_EFFECT = POTIONS
            .register("fall_immunity_effect", ()->new CommonEffect(EffectType.BENEFICIAL, 2293580));

}
